package cn.iocoder.yudao.module.security.controller.admin.asset.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.*;
import java.util.*;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 公司资产管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SecurityAssetRespVO {

    @Schema(description = "资产ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10026")
    @ExcelProperty("资产ID")
    private Long id;

    @Schema(description = "IP地址")
    @ExcelProperty("IP地址")
    private String ipAddress;

    @Schema(description = "MAC地址")
    @ExcelProperty("MAC地址")
    private String macAddress;

    @Schema(description = "资产来源", example = "2")
    @ExcelProperty(value = "资产来源", converter = DictConvert.class)
    @DictFormat("asset_source_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String sourceType;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态（0正常 1停用）")
    private Integer status;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "IP")
    @ExcelProperty("IP")
    private Long ipLong;

    @Schema(description = "厂商")
    @ExcelProperty("厂商")
    private String company;

    @Schema(description = "型号")
    @ExcelProperty("型号")
    private String productModel;

    @Schema(description = "操作系统")
    @ExcelProperty("操作系统")
    private String operatingSystem;

    private LocalDateTime updateTime;

    private LocalDateTime createTime;

}